﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace CostaRicaPureTravelUtils.EmailConfiguration
{
    public class EmailSection : ConfigurationSection
    {
        [ConfigurationProperty("host", IsRequired = true)]
        public String Host
        {
            get { return (String)base["host"]; }
            set { base["host"] = value; }
        }

        [ConfigurationProperty("port", IsRequired = true)]
        public int Port
        {
            get { return (int)base["port"]; }
            set { base["port"] = value; }
        }

        [ConfigurationProperty("address", IsRequired = true)]
        public String Address
        {
            get { return (String)base["address"]; }
            set { base["address"] = value; }
        }

        [ConfigurationProperty("displayName", IsRequired = true)]
        public String DisplayName
        {
            get { return (String)base["displayName"]; }
            set { base["displayName"] = value; }
        }

        [ConfigurationProperty("defaultCredentials", IsRequired = true)]
        public bool DefaultCredentials
        {
            get { return (bool)base["defaultCredentials"]; }
            set { base["defaultCredentials"] = value; }
        }

        [ConfigurationProperty("userName", IsRequired = true)]
        public String UserName
        {
            get { return (String)base["userName"]; }
            set { base["userName"] = value; }
        }

        [ConfigurationProperty("password", IsRequired = true)]
        public String Password
        {
            get { return (String)base["password"]; }
            set { base["password"] = value; }
        }

        [ConfigurationProperty("enableSSL", IsRequired = true)]
        public bool EnableSSL
        {
            get { return (bool)base["enableSSL"]; }
            set { base["enableSSL"] = value; }
        }

        
    }
}
